package com.atguigu.springcloud.service;

import com.atguigu.springcloud.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @USER: dayu
 * @DATE: 2020/4/17
 * @DESCRIPTION:
 */
@FeignClient(value = "seata-storage-service")
public interface StorageService {
    //减库存
    @PostMapping("/storage/delcreate")
    CommonResult delcreate(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}
